package com.lefeng.cockpit.datax.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lefeng.cockpit.common.bean.dto.executor.ExecutorDTO;
import com.lefeng.cockpit.common.bean.po.datasource.DataSourcePO;
import com.lefeng.cockpit.common.bean.po.executor.ExecutorPO;
import com.lefeng.cockpit.common.bean.vo.execute.ExecutorStateVO;
import com.lefeng.cockpit.common.bean.vo.execute.ExecutorVO;

import java.util.List;

/**
 * @author weifw
 */
public interface ExecutorDao {


    List<ExecutorPO> findByAddressType(int i);

    void update(ExecutorPO group);

    IPage<ExecutorVO> selectPage(ExecutorDTO executorDTO);

    ExecutorStateVO getExecutorState();

    ExecutorPO load(int id);

    DataSourcePO selectById(int datasourceId);
}
